package com.ecmap.hongyun.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 
 * @className:Facility.java
 * @classDescription:酒店设施
 * @author: DANIEL DENG
 * @createTime: 2013-6-29
 *
 */
@Entity
@Table(name = "t_facility", catalog = "hongyun")
public class Facility implements java.io.Serializable {

	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7133908370665798388L;
	
	// Fields

	private Long id;
	private String title;
	private String previewPicUrl;
	private String content;
	private Integer facilityStatus;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public Facility() {
	}

	/** full constructor */
	public Facility(String title, String previewPicUrl, String content,
			Integer facilityStatus, Date createTime, Date updateTime) {
		this.title = title;
		this.previewPicUrl = previewPicUrl;
		this.content = content;
		this.facilityStatus = facilityStatus;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "TITLE")
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "PREVIEW_PIC_URL")
	public String getPreviewPicUrl() {
		return this.previewPicUrl;
	}

	public void setPreviewPicUrl(String previewPicUrl) {
		this.previewPicUrl = previewPicUrl;
	}

	@Column(name = "CONTENT", length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "FACILITY_STATUS")
	public Integer getFacilityStatus() {
		return this.facilityStatus;
	}

	public void setFacilityStatus(Integer facilityStatus) {
		this.facilityStatus = facilityStatus;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 10)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "UPDATE_TIME", length = 10)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}